package com.zhuangjie.generator.test.task2.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.zhuangjie.generator.test.task2.converter.EasyExcelLocalDateConverter;

import java.time.LocalDate;

public class TOrder {
    @ExcelProperty("orderid")
    private String orderid;
    @ExcelProperty(value = "orderdate",converter = EasyExcelLocalDateConverter.class)
    private LocalDate orderdate;
    @ExcelProperty("qty")
    private Integer qty;

    public TOrder() {
    }

    public TOrder(String orderid, LocalDate orderdate, Integer qty) {
        this.orderid = orderid;
        this.orderdate = orderdate;
        this.qty = qty;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public LocalDate getOrderdate() {
        return orderdate;
    }

    public void setOrderdate(LocalDate orderdate) {
        this.orderdate = orderdate;
    }

    public Integer getQty() {
        return qty;
    }

    public void setQty(Integer qty) {
        this.qty = qty;
    }

    @Override
    public String toString() {
        return "TOrder{" +
                "orderid='" + orderid + '\'' +
                ", orderdate=" + orderdate +
                ", qty=" + qty +
                '}';
    }
}
